package plus.easydo.easypush.entity;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import plus.easydo.starter.mybatis.plus.entity.MPBaseEntity;

/**
 * 用户渠道配置信息
 * @author yuzhanfeng
 * @TableName channel_info
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ChannelInfo extends MPBaseEntity implements Serializable {

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 渠道类型
     */
    private String channelType;

    /**
     * 渠道名称
     */
    private String channelName;

    /**
     * 渠道数据
     */
    @TableField(typeHandler = FastjsonTypeHandler.class)
    private JSONObject data;


    /**
     * 创建人
     */
    private String createBy;

    /**
     * 更新人
     */
    private String updateBy;

    /**
     * 删除标记
     */
    @TableLogic
    private Integer delFlag;


    /**
     * 排除备注字段备注
     */
    @TableField(exist = false)
    private String remark;


}